package com.mszlu.news.controller;

import com.mszlu.news.service.AuthenticationService;
import com.mszlu.news.vo.Result;
import com.mszlu.news.vo.params.AuthenticationParam;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "V认证接口")
@RestController
@RequestMapping("authentication")
public class AuthenticationController {
    @Autowired
    private AuthenticationService authenticationService;

    @ApiOperation(value = "增加认证")
    @PostMapping("add")
    public Result addAuthentication(@RequestBody AuthenticationParam authenticationParam){
        return authenticationService.addAuthentication(authenticationParam);
    }
}
